import request from '../utils/request.js';
//查询订单
export function getOrders(data){
	return request({
		url:'/WX3SalesOrder?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 再来一单
export function getOneOrder(data){
	return request({
		url:'/WXCheckSaleOrderAgainAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 退款
export function getRefund(data){
	return request({
		url:'/WXWeChatRefundNativeAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 获取退款明细
export function getRefundDetails(data){
	return request({
		url:'/WeChatRefundDetailAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}